package com.platform.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.ApiDonationRecordMapper;
import com.platform.entity.DonationRecordVo;

/**
 * 用户捐款记录表Service实现类
 *
 * @author czj
 * @email 729618941@qq.com
 * @date 2018-11-01 11:32:00
 */
@Service
public class ApiDonationRecordService  {
    @Autowired
    private ApiDonationRecordMapper donationRecordDao;

  
    public DonationRecordVo queryObject(Integer id) {
        return donationRecordDao.queryObject(id);
    }

  
    public List<DonationRecordVo> queryList(Map<String, Object> map) {
        return donationRecordDao.queryList(map);
    }

  
    public int queryTotal(Map<String, Object> map) {
        return donationRecordDao.queryTotal(map);
    }

  
    public int save(DonationRecordVo donationRecord) {
        return donationRecordDao.save(donationRecord);
    }

  
    public int update(DonationRecordVo donationRecord) {
        return donationRecordDao.update(donationRecord);
    }

  
    public int delete(Integer id) {
        return donationRecordDao.delete(id);
    }

  
    public int deleteBatch(Integer[]ids) {
        return donationRecordDao.deleteBatch(ids);
    }
}
